//
//  NSArray+CLCategory.h
//  CLBrowser
//
//  Created by 梁慧聪 on 2022/7/3.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSArray (CLCategory)

- (BOOL)cl_hasIndex:(NSInteger)index;

- (NSArray *)cl_map:(id (^)(NSUInteger , id))block;

- (NSArray *)cl_filter:(BOOL (^)(id obj))block;

- (id)cl_firstFiltered:(BOOL (^)(id obj))block;

- (id)cl_lastFiltered:(BOOL (^)(id obj))block;

- (BOOL)isEmpty;
@end

@interface NSMutableArray (CLCategory)

@end
NS_ASSUME_NONNULL_END
